home *** CD-ROM | disk | FTP | other *** search
/ User's Choice Windows CD / User's Choice Windows CD (CMS Software)(1993).iso / utility2 / wincmd.zip / WINCMC.ZIP / MAKEFILE.MSC next >
Text File  |  1993-04-07  |  2KB  |  69 lines

  1. #==========================================================
  2. # Makefile for Win EXEs under Microsoft C 6.0
  3. # Copyright (c) 1993 Douglas Boling
  4. #==========================================================
  5. #----------------------------------------------------------
  6. # Target filename
  7. #----------------------------------------------------------
  8. NAME = wincmd
  9.  
  10. #----------------------------------------------------------
  11. # Define DEBUG = 1 to add debug info to EXE
  12. #----------------------------------------------------------
  13. DEBUG = 0
  14.  
  15. #----------------------------------------------------------
  16. # C compiler switches
  17. #
  18. # -c    Compile, no link
  19. # -Gsw     No Stack check, Compile for Windows
  20. # -Ow   Optimize. Assume no aliases
  21. # -W3   Print warnings to level 3
  22. # -Zp   Pack Structures or...
  23. # -Zpi  If Debug info needed
  24. # -Od   Disable Optimization
  25. #----------------------------------------------------------
  26. !if $(DEBUG)
  27. CSWITCH = -c -Gsw -Ow -W3 -Zpi -Od
  28. !else
  29. CSWITCH = -c -Gsw -Ow -W3 -Zp 
  30. !endif
  31.  
  32. #----------------------------------------------------------
  33. # Link Switches
  34. #
  35. # /Align:16  Align segments on 16 byte boundries 
  36. # /CO        If debug info needed
  37. #----------------------------------------------------------
  38. !if $(DEBUG)
  39. LSWITCH = /CO /align:16
  40. !else
  41. LSWITCH = /align:16
  42. !endif
  43.  
  44. #----------------------------------------------------------
  45. # Lib files
  46. #
  47. # /nod     No defaults
  48. # slibcew  Small model lib for Windows
  49. # libw     Windows API lib
  50. # commdlg  Windows Common Dialog Box lib
  51. #----------------------------------------------------------
  52. LIBS = /nod slibcew libw commdlg
  53.  
  54. #----------------------------------------------------------
  55. # Make EXE
  56. #----------------------------------------------------------
  57. $(NAME).exe : $(NAME).obj $(NAME).def $(NAME).res
  58.     link $(LSWITCH) $(NAME), $(NAME).exe, NUL, $(LIBS), $(NAME)
  59.     rc $(NAME).res
  60.  
  61. $(NAME).obj : $(NAME).c $(NAME).h
  62.     cl $(CSWITCH) $(NAME).c
  63.  
  64. $(NAME).res : $(NAME).rc $(NAME).h $(NAME).ico
  65.     rc -r $(NAME).rc
  66.  
  67.  
  68.  
  69.